package io.wdb.modules.activity.wx.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import io.wdb.modules.activity.wx.dao.MarketBookDao;
import io.wdb.modules.activity.wx.entity.MarketBookEntity;
import io.wdb.modules.activity.wx.service.MarketBookService;

import java.util.List;
import java.util.Map;



@Service("marketBookService")
public class MarketBookServiceImpl implements MarketBookService {
	@Autowired
	private MarketBookDao marketBookDao;
	
	@Override
	public MarketBookEntity queryObject(Long id){
		return marketBookDao.queryObject(id);
	}
	
	@Override
	public List<MarketBookEntity> queryList(Map<String, Object> map){
		return marketBookDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return marketBookDao.queryTotal(map);
	}
	
	@Override
	public void save(MarketBookEntity marketBook){
		marketBookDao.save(marketBook);
	}
	
	@Override
	public void update(MarketBookEntity marketBook){
		marketBookDao.update(marketBook);
	}
	
	@Override
	public void delete(Long id){
		marketBookDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		marketBookDao.deleteBatch(ids);
	}
	
}
